package cn.flying.cloud.esb.core.chain;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * 默认的异常处理器
 *
 * @author: admin
 * @date: 2025年04月18日 15:19
 * @version: 1.0
 */
@Component
public class DefaultExceptionHandler implements ExceptionHandler {
    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    @Override
    public void handleException(ChainContext<?> ctx, Exception exception) {
        logger.error("Exception occurred during handler execution", exception);
    }
}
